package com.yn.xr.middleware.base.constants;

import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;

public class SystemConstants {
	// 第三方服务地址
	public static String thirdServiceUrl;

	static {
		init();
	}

	/**
	 * @function: 初始化配置信息
	 * @exception
	 * @author:HX1401077
	 * @since 1.0.0
	 */
	private static void init() {
		try {
			InputStream is = SystemConstants.class
					.getResourceAsStream("/properties/config.properties");
			Properties prop = new Properties();
			prop.load(new InputStreamReader(is));
			thirdServiceUrl = prop.getProperty("third_service_url");
			is.close();
			prop = null;
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
